import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false;

//引入全局样式
import "@/assets/styles/index.scss";

// 引入 vue-echarts 和 echarts
import VChart from 'vue-echarts'
import * as echarts from 'echarts'
// 全局注册组件
Vue.component('v-chart', VChart)

//antd-vue
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";

Vue.config.productionTip = false;
Vue.use(Antd);
Vue.prototype.$antdConfirm = Vue.prototype.$confirm;
Vue.prototype.$antdMessage = Vue.prototype.$message;

// element-ui依赖
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import locale from "element-ui/lib/locale/lang/zh-CN";

Vue.use(ElementUI, {locale});

//vue-fragment使用
import Fragment from "vue-fragment";

Vue.use(Fragment.Plugin);

//引入全屏
import "@/views/test004/Dialog002/FullScreenDirective";

import BaiduMap from 'vue-baidu-map'

Vue.use(BaiduMap, {
    // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
    ak: 'FKyMV8EyFFn2ZgsdBQz7OntGcrhcGe2u'
});

//使用vue-ls设置
import Storage from "vue-ls";

Vue.use(Storage, {
    namespace: "pro__", // key prefix
    name: "ls", // name variable Vue.[ls] or this.[$ls],
    storage: "local", // storage name session, local, memory
});

//引用permission.js权限控制
import "@/permission";

// vue-particles粒子动画实现
import VueParticles from "vue-particles";

Vue.use(VueParticles);

new Vue({
    router,
    store,
    render: h => h(App),
}).$mount('#app')
